/*
 * @Author: xiaosihan
 * @Date: 2022-08-20 17:08:13
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2023-03-28 19:18:24
 */
import PwaModal from '@components/PwaModal';
import hashHistory from '@hashHistory';
import Ui from '@views/ui/Ui';
import { Modal } from 'antd';
import ReactDOM from 'react-dom/client';
import { Route, Routes, unstable_HistoryRouter as Router } from 'react-router-dom';
import './index.css';
import 'antd-mobile/es/global';
import loadable from '@loadable/component';
import Home3 from '@views/Home3/Home3';

const Home2 = loadable(() => import('./views/Home2/Home2'));

const Root = window.Root || (window.Root = ReactDOM.createRoot(document.getElementById('root')!));

Root.render(
  <Router history={hashHistory}>
    <PwaModal />
    <Routes>
      <Route path="/" element={<Home2 />} />
      <Route path="/class" element={<Home3 />} />
    </Routes>
  </Router>
);

//@ts-ignore
console.log('前端发版时间', process.env.BUILD_TIME);
console.log('程序问题反馈联系方式 %cqq389652405', 'color: red');
